package com.shard.jdbc.service.impl;

import com.shard.jdbc.entity.TableOne;
import com.shard.jdbc.mapper.TableOneMapper;
import com.shard.jdbc.service.ShardService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.beans.factory.annotation.Qualifier;
import org.springframework.jdbc.core.JdbcTemplate;
import org.springframework.stereotype.Service;
import javax.annotation.Resource;

@Service
public class ShardServiceImpl implements ShardService {

    @Resource
    private TableOneMapper tableOneMapper ;

    @Override
    public TableOne selectOneByName(String name, String dbNo) {
        return tableOneMapper.selectOneByPhone(name,dbNo);
    }

}
